/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ventanaOperacionesRestaurante.java
 *
 * Created on 26/06/2010, 10:15:40 PM
 */

package CapaGrafica;
import CapaLogica.GestionResort;
import CapaDatos.Restaurante;
import java.util.ArrayList;
import java.util.Vector;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import CapaPersistencia.ControladorRestaurante;
import java.text.ParseException;

/**
 *
 * @author Maria
 */
public class ventanaOperacionesRestaurante extends javax.swing.JFrame {
private ControladorRestaurante control = new ControladorRestaurante();
    /** Creates new form ventanaOperacionesRestaurante */
    public ventanaOperacionesRestaurante() {
        initComponents();
        mostrarTabla();
        this.setSize(600,500);
    }

    private void mostrarTabla() {
        DefaultTableModel dm = new DefaultTableModel();
        dm.addColumn("ID");
        dm.addColumn("Ubicación");
        dm.addColumn("Capacidad");
        dm.addColumn("Comidas");

        ArrayList <Restaurante> restaurantes = this.control.todosLosRestaurantes();
        for (Restaurante restaurante : restaurantes) {
            Vector row = new Vector();
//            GestionResort.getLasReservas().agregarElemento(restaurante);
            row.add(restaurante.getID());
            row.add(restaurante.getUbicacion());
            row.add(restaurante.getCapComensales());
            row.add(restaurante.getComidas());
            dm.addRow(row);
        }
        this.tablaRestaurantes.setModel(dm);
    }

    private void mostrarRestaurante(String ID) {
        Restaurante restauranteMostrar = this.control.buscarRestaurante(ID);
        this.sID.setText(restauranteMostrar.getID());
        this.sUbicacion.setText(restauranteMostrar.getUbicacion());
        this.sCapComensales.setText(String.valueOf(restauranteMostrar.getCapComensales()));
        this.sComidas.setText(restauranteMostrar.getComidas());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        tablaRestaurantes = new javax.swing.JTable();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jBagregar = new javax.swing.JButton();
        nID = new javax.swing.JTextField();
        nComidas = new javax.swing.JTextField();
        nUbicacion = new javax.swing.JTextField();
        nCapComensales = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jBactualizar = new javax.swing.JButton();
        jBeliminar = new javax.swing.JButton();
        sID = new javax.swing.JTextField();
        sComidas = new javax.swing.JTextField();
        sUbicacion = new javax.swing.JTextField();
        sCapComensales = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        jLabel16 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Gestion Restaurantes");
        setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        setLocationByPlatform(true);

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        tablaRestaurantes.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tablaRestaurantes.setName("tablaRestaurantes"); // NOI18N
        tablaRestaurantes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                tablaRestaurantesMouseReleased(evt);
            }
        });
        tablaRestaurantes.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                tablaRestaurantesKeyReleased(evt);
            }
        });
        jScrollPane1.setViewportView(tablaRestaurantes);

        jTabbedPane1.setName("jTabbedPane1"); // NOI18N

        jPanel1.setBackground(new java.awt.Color(0, 102, 153));
        jPanel1.setName("jPanel1"); // NOI18N

        jBagregar.setText("Agregar");
        jBagregar.setName("jBagregar"); // NOI18N
        jBagregar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBagregarActionPerformed(evt);
            }
        });

        nID.setName("nID"); // NOI18N

        nComidas.setName("nComidas"); // NOI18N

        nUbicacion.setName("nUbicacion"); // NOI18N

        nCapComensales.setName("nCapComensales"); // NOI18N

        jLabel5.setText("ID:");
        jLabel5.setName("jLabel5"); // NOI18N

        jLabel6.setText("Comidas:");
        jLabel6.setName("jLabel6"); // NOI18N

        jLabel7.setText("Ubicacion:");
        jLabel7.setName("jLabel7"); // NOI18N

        jLabel8.setText("Capacidad:");
        jLabel8.setName("jLabel8"); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(83, 83, 83)
                        .addComponent(jBagregar))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel8)
                                .addGap(36, 36, 36)
                                .addComponent(nCapComensales, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel7)
                                .addGap(41, 41, 41)
                                .addComponent(nUbicacion, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel6)
                                .addGap(46, 46, 46)
                                .addComponent(nComidas, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel5)
                                .addGap(75, 75, 75)
                                .addComponent(nID, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)))))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nComidas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nUbicacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nCapComensales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
                .addComponent(jBagregar)
                .addGap(23, 23, 23))
        );

        jTabbedPane1.addTab("Agregar", jPanel1);

        jPanel2.setBackground(new java.awt.Color(0, 102, 153));
        jPanel2.setName("jPanel2"); // NOI18N

        jBactualizar.setText("Actualizar");
        jBactualizar.setName("jBactualizar"); // NOI18N
        jBactualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBactualizarActionPerformed(evt);
            }
        });

        jBeliminar.setText("Eliminar");
        jBeliminar.setName("jBeliminar"); // NOI18N
        jBeliminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBeliminarActionPerformed(evt);
            }
        });

        sID.setName("sID"); // NOI18N

        sComidas.setName("sComidas"); // NOI18N

        sUbicacion.setName("sUbicacion"); // NOI18N

        sCapComensales.setName("sCapComensales"); // NOI18N

        jLabel1.setText("ID:");
        jLabel1.setName("jLabel1"); // NOI18N

        jLabel2.setText("Comidas:");
        jLabel2.setName("jLabel2"); // NOI18N

        jLabel3.setText("Ubicacion:");
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setText("Capacidad:");
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel9.setText("Restaurante:");
        jLabel9.setName("jLabel9"); // NOI18N

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel2)
                            .addComponent(jLabel1)
                            .addComponent(jLabel3)
                            .addComponent(jLabel4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(sCapComensales, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
                            .addComponent(sID, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
                            .addComponent(sComidas, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
                            .addComponent(sUbicacion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(jBactualizar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)
                        .addComponent(jBeliminar)))
                .addGap(40, 40, 40))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(84, 84, 84)
                .addComponent(jLabel9)
                .addContainerGap(100, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(52, 52, 52)
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(sComidas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(sID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(sUbicacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addGap(19, 19, 19)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(sCapComensales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, 39, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBeliminar)
                    .addComponent(jBactualizar))
                .addGap(28, 28, 28))
        );

        jTabbedPane1.addTab("Actualizar o eliminar", jPanel2);

        jSeparator2.setName("jSeparator2"); // NOI18N

        jLabel16.setFont(new java.awt.Font("Trebuchet MS", 0, 36));
        jLabel16.setForeground(new java.awt.Color(0, 51, 204));
        jLabel16.setText("i-Resort.");
        jLabel16.setName("jLabel16"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 617, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(364, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 389, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 617, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(8, 8, 8)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 279, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBagregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBagregarActionPerformed
       boolean resultado = false;
        String ID = this.nID.getText();
        Integer capComensales = Integer.parseInt(this.nCapComensales.getText());
        String ubicacion = this.nUbicacion.getText();
        String comidas = this.nComidas.getText();

         if (GestionResort.getLosRestaurantes().EstaElRestaurante(ID)== false)
         {
        resultado = this.control.nuevoRestaurante(ID, ubicacion,capComensales, comidas);
        if (resultado) {
            JOptionPane.showMessageDialog(null, "Restaurante " + ID + " agregado con exito", "Agregado",
                    JOptionPane.INFORMATION_MESSAGE);
            this.mostrarTabla();
        } else {
            JOptionPane.showMessageDialog(null, "Operacion Fallida", "Error",
                    JOptionPane.ERROR_MESSAGE);
        }
      }
         else
               JOptionPane.showMessageDialog(null, "Operacion Fallida el Restaurante con este ID se encuentra registrada ", "Error",JOptionPane.ERROR_MESSAGE); // TODO add your handling code here:
    }//GEN-LAST:event_jBagregarActionPerformed

    private void jBactualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBactualizarActionPerformed
       boolean resultado = false;
        String ID = this.sID.getText();
        String ubicacion = this.sUbicacion.getText();
        Integer capComensales = Integer.parseInt(this.sCapComensales.getText());
        String comidas = this.sComidas.getText();
        resultado = this.control.actualizarRestaurante(ID, ubicacion, capComensales, comidas);
        if (resultado) {
            JOptionPane.showMessageDialog(null, "Reserva " + capComensales + " actualizado con exito", "Actualizado",
                    JOptionPane.INFORMATION_MESSAGE);
            this.mostrarTabla();
        } else {
            JOptionPane.showMessageDialog(null, "Operacion Fallida", "Error",
                    JOptionPane.ERROR_MESSAGE);
        } // TODO add your handling code here:
    }//GEN-LAST:event_jBactualizarActionPerformed

    private void jBeliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBeliminarActionPerformed
       boolean resultado = this.control.eliminarRestaurante(this.sID.getText());
        if (resultado) {
            JOptionPane.showMessageDialog(null, "Restaurante " + this.sID.getText() + " borrada con exito", "Borrada",
                    JOptionPane.INFORMATION_MESSAGE);
            this.mostrarTabla();
        } else {
            JOptionPane.showMessageDialog(null, "Operacion Fallida", "Error",
                    JOptionPane.ERROR_MESSAGE);
        } // TODO add your handling code here:
    }//GEN-LAST:event_jBeliminarActionPerformed

    private void tablaRestaurantesKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tablaRestaurantesKeyReleased
       int row = this.tablaRestaurantes.getSelectedRow();
        String ID = (String) this.tablaRestaurantes.getModel().getValueAt(row, 0);
            this.mostrarRestaurante(ID); // TODO add your handling code here:
    }//GEN-LAST:event_tablaRestaurantesKeyReleased

    private void tablaRestaurantesMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaRestaurantesMouseReleased
       /*int row = this.tablaRestaurantes.getSelectedRow();
        String id = (String) this.tablaRestaurantes.getModel().getValueAt(row, 1);
        try {
            this.mostrarRestaurante(id);
        } catch (ParseException ex) {
            Logger.getLogger(ventanaOperacionesRestaurante.class.getName()).log(Level.SEVERE, null, ex);
        }*/ // TODO add your handling code here:
    }//GEN-LAST:event_tablaRestaurantesMouseReleased

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ventanaOperacionesRestaurante().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBactualizar;
    private javax.swing.JButton jBagregar;
    private javax.swing.JButton jBeliminar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTextField nCapComensales;
    private javax.swing.JTextField nComidas;
    private javax.swing.JTextField nID;
    private javax.swing.JTextField nUbicacion;
    private javax.swing.JTextField sCapComensales;
    private javax.swing.JTextField sComidas;
    private javax.swing.JTextField sID;
    private javax.swing.JTextField sUbicacion;
    private javax.swing.JTable tablaRestaurantes;
    // End of variables declaration//GEN-END:variables

}
